layui.define(['jqform'], function (exports) {
     var $ = layui.jquery;
     var  layer = layui.layer;
     var form = layui.jqform;

     var index = parent.layer.getFrameIndex(window.name);
     $('#btn_save').click(function(){
        if($("#dicname").val()==""){layer.msg("字典名称不能为空");return false;}
        if($("#dicvalue").val()==""){layer.msg("字典值不能为空");return false;}
        //SaveAM({tpl:"sys_dict","do":$("#form1").data('dotype'),frmid:"#form1",showok:"",callback:""});
        //document.getElementById("form1").submit();
        parent.layer.close(index);
     });
     
     exports('system_edit_dict', {});
});